<?php 
include TMPL_PATH.'public/header.phtml';
?>
<div class="subnav">
    <div class="content-menu ib-a blue line-x">
        <a href='<?php echo U('comment/index');?>'><em>评论列表</em></a><span>|</span>
        <a href='javascript:;' class="on" ><em>评论设置</em></a></div>
</div>
<form action="__SELF__" method="post" id="myform">
<div class="pad-10">
<div class="col-tab">
<div class="contentList pad-10">
<table width="100%"  class="table_form">
  <tr>
    <th width="120">是否开启评论</th>
    <td class="y-bg">
     <input name="comment_display"  type="radio" value="1" <?php if((isset($config['comment_display']) && $config['comment_display']==1)) echo 'checked'?>/> 开启 <input name="comment_display"  type="radio" value="0" <?php if((isset($config['comment_display']) && $config['comment_display']==0)) echo 'checked'?>/> 禁用 <div class="infoShow">如果开启将显示评论功能</div>
	</td>
  </tr>
  <tr>
    <th width="120">评论开启条件</th>
    <td class="y-bg">
     <input name="comment_type"  type="radio" value="0" <?php if((isset($config['comment_type']) && $config['comment_type']==0)) echo 'checked'?>/> 用户不登录可以评论 
     <input name="comment_type"  type="radio" value="1" <?php if((isset($config['comment_type']) && $config['comment_type']==1)) echo 'checked'?>/> 用户必须登录才可以评论 
     <input name="comment_type"  type="radio" value="2" <?php if((isset($config['comment_type']) && $config['comment_type']==2)) echo 'checked'?>/>用户必须购买成功后才可以评论
	</td>
  </tr>
  <tr>
    <th width="120">评论是否要审核</th>
    <td class="y-bg">
     <input name="comment_disabled"  type="radio" value="1" <?php if((isset($config['comment_disabled']) && $config['comment_disabled']==1)) echo 'checked'?>/> 要审核 <input name="comment_disabled"  type="radio" value="0" <?php if((isset($config['comment_disabled']) && $config['comment_disabled']==0)) echo 'checked'?>/> 不用审核 <div class="infoShow">评论显示是否需要审核</div>
	</td>
  </tr>
  <tr>
    <th width="120">禁止预约的日期</th>
    <td class="y-bg"><input type="text" class="input-text" name="time_list" size="50" value="<?php echo isset($config['time_list']) && $config['time_list'] ? $config['time_list'] : null?>" /> 列2014-01-09，多个日期请用半角逗号(,)分隔</td>
  </tr>
  <tr>
  </table>
</div>

<div class="bk15"></div>
<input name="dosubmit" type="submit" value="提交" class="button">
</div>
</div>
</form>
</body>
</html>